package com.school.information.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.school.information.dto.WechatAppUserDTO;
import com.school.information.entity.SysWechatUserEntity;

/**
 * (SysWechatUser)表服务接口
 *
 * @author ycc
 * @since 2023-11-15 14:25:49
 */
public interface SysWechatUserService extends IService<SysWechatUserEntity> {

    /**
     * 根据小程序用户的openid获取小程序用户信息
     *
     * @param openid
     * @return
     */
    SysWechatUserEntity getByOpenid(String openid);

    /**
     * 小程序前端传递加密数据，后端进行解密
     * @param wechatAppUser
     * @return
     */
    String decryptWechatData(WechatAppUserDTO wechatAppUser);
}
